Class MyCSVTrackFormatter


  • public class MyCSVTrackFormatter
    extends MyTrackFormatter
    This class represents the concept of csv-formatting of a track.
    Since:
    ExerciseSheet04
    Version:
    1
    Author:
    Jonas Altrock (ew20b126@technikum-wien.at)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(Track t)
      Creates a CSV format of a track.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyCSVTrackFormatter

        public MyCSVTrackFormatter()
    • Method Detail

      • format

        public java.lang.String format​(Track t)
        Creates a CSV format of a track.

        The csv representation of a track is "title","performer","writer","year","duration"; (without quotes)
        No new line is added at the end of the String!

        Specified by:
        format in class MyTrackFormatter
        Parameters:
        t - the track to be formatted
        Returns:
        the formatted String representing the track